<?php

class EasyForm extends CWidget
{
    public $model = '';
    public $view = '';
    
    
    public function run(){
        $model = Yii::createComponent($this->model);
        return $this->render($this->view, array('model' => $model), true);
//        return FSM::run('Cms.Form.displayForm', array(
//            'form_id' => $this->formId
//        ))->html;
//        
//        return $this->render('easyForm', array(
//        ), true);
    }
}
?>
